package com.itstu.gulimall.seckill.fallback;

import com.itstu.common.exception.BizCodeEnume;
import com.itstu.common.utils.R;
import com.itstu.gulimall.seckill.feign.CouponFeignService;
import org.springframework.stereotype.Component;

/**
 * @author shhjiang_001
 * @create 2020-06-07 20:03
 */
@Component
public class CouponFeginServiceFallBack implements CouponFeignService {
    @Override
    public R getLast3DaysSession() {
        System.out.println("调用了熔断方法");
        return R.error(BizCodeEnume.TOO_MANEY_REQUEST_EXCEPTION.getCode(),BizCodeEnume.TOO_MANEY_REQUEST_EXCEPTION.getMsg());
    }
}
